|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectga.core.algorithm.interactive.AbstractSIGA<T>
ga.core.algorithm.interactive.SIGAGeneration<T>
T - The generic type of individuals.public class SIGAGeneration<T extends IIndividual<T>>
Generational simple interactive genetic algorithm.
| Field Summary | |
|---|---|
private static int |
CRITICAL_WHILE_ITERATIONS
|
private static java.util.logging.Logger |
LOGGER
|
| Fields inherited from interface ga.core.GA |
|---|
KEY_EVALUATED_INDIVIDUALS_MIN_COUNT, KEY_GENOME_MAX_LENGTH, KEY_GENOME_MIN_LENGTH, KEY_INIT_INDIVIDUAL, KEY_INIT_INDIVIDUAL_PERCENTAGE, KEY_INTERVAL_FITNESS_MAX_WIDTH, KEY_VALIDATION_SPACE |
| Constructor Summary | |
|---|---|
SIGAGeneration(IPopulation<T> population,
IInteractiveFitnessEvaluator<T> evaluator,
ISelector<T> selector,
IMutationOp<T> mutateOperator,
ICrossoverOp<T> crossoverOperator,
boolean useEliteStrategy)
Creates a new generational SIGA. |
|
SIGAGeneration(IPopulation<T> population,
IInteractiveFitnessEvaluator<T> evaluator,
ISelector<T> selector,
IMutationOp<T> mutateOperator,
ICrossoverOp<T> crossoverOperator,
IValidator<T> validator,
boolean useEliteStrategy,
IGALogger<T> gaLogger)
Creates a new generational SIGA. |
|
| Method Summary | |
|---|---|
private IndividualList<T> |
doReproduction()
Selects two individuals, recombines and mutates them. |
void |
individualEvaluated(T ind)
This will be notified when an evaluator has evaluated the individual. |
void |
newIndividualRequested()
This will be notified when a evaluator demands a new individual for evaluation. |
void |
step()
Do one step. |
| Methods inherited from class ga.core.algorithm.interactive.AbstractSIGA |
|---|
checkThread, exit, getContext, getCrossoverOp, getEvaluatingIndividuals, getEvaluator, getGALogger, getGeneration, getMutationOp, getPopulation, getSelector, getValidator, incGeneration, init, isUseEliteStrategy, isValidate, setValidate, setValidator |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final java.util.logging.Logger LOGGER
private static final int CRITICAL_WHILE_ITERATIONS
| Constructor Detail |
|---|
public SIGAGeneration(IPopulation<T> population,
IInteractiveFitnessEvaluator<T> evaluator,
ISelector<T> selector,
IMutationOp<T> mutateOperator,
ICrossoverOp<T> crossoverOperator,
boolean useEliteStrategy)
population - Population for the GA.evaluator - The automatic evaluator.selector - The selector.mutateOperator - The mutation operator.crossoverOperator - The crossover operator.useEliteStrategy - Use elite strategy or not.
public SIGAGeneration(IPopulation<T> population,
IInteractiveFitnessEvaluator<T> evaluator,
ISelector<T> selector,
IMutationOp<T> mutateOperator,
ICrossoverOp<T> crossoverOperator,
IValidator<T> validator,
boolean useEliteStrategy,
IGALogger<T> gaLogger)
population - Population for the GA.evaluator - The automatic evaluator.selector - The selector.mutateOperator - The mutation operator.crossoverOperator - The crossover operator.validator - The validatoruseEliteStrategy - Use elite strategy or not.gaLogger - The ga logger.| Method Detail |
|---|
public void step()
GA
private IndividualList<T> doReproduction()
public void newIndividualRequested()
EvaluationListener
public void individualEvaluated(T ind)
EvaluationListener
ind - The individual that has been evaluated.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||